home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part2 / 11191 < prev    next >
Encoding:
Text File  |  1996-08-05  |  1.3 KB  |  32 lines

  1. Newsgroups: comp.lang.c
  2. Path: phcoms4.seri.philips.nl!misf1!Pvestjen
  3. From: Pvestjen@ms.philips.nl (Patrick Vestjens)
  4. Subject: Re: Invalid Indirection???
  5. Message-ID: <1996Mar22.132529.4258@ms.philips.nl>
  6. Sender: news@ms.philips.nl
  7. Organization: Philips Medical Systems, Best
  8. X-Newsreader: TIN [version 1.2 PL2]
  9. References: <4i7cck$t67@infa.central.susx.ac.uk> <4iah9k$r02@newshost.cyberramp.net> <danpop.826916016@rscernix> <4ips1j$fq0@airdmhor.gen.nz>
  10. Date: Fri, 22 Mar 1996 13:25:29 GMT
  11.  
  12. Simon Hosie (gumboot@airdmhor.gen.nz) wrote:
  13. :   What's wrong with *temp?
  14.  
  15. Nothing, but it is not a valid token. * and temp are valid tokens, but
  16. when you concatenate them (and thus get *temp) the result is not a valid
  17. token.
  18.  
  19. I've been following this discussion and in my opinion there is at least
  20. one situation where spaces DO make a difference. If you leave out the
  21. space after the / in the expression "a / *b" (a divided by the value
  22. optained after dereferencing b) you get "a /*b" where the /* is
  23. interpreted (at least by the GNU preprocessor) as the start of a
  24. comment.
  25.  
  26. Note however that comments are not in the grammar (they are being taken
  27. care of by the preprocessor) so this does not introduce an ambiguity in
  28. the grammar. It can lead to unexpected surprises though.
  29.  
  30. Regards, Patrick.
  31.  
  32.